package com.atguigu.auth.service;

import com.atguigu.model.system.SysRole;
import com.atguigu.vo.system.AssginRoleVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * ClassName: SysRoleService
 * Package: com.atguigu.auth.service
 *
 * @Author: lmf
 * @Create: 2024/1/15 21:57
 * @Version: 1.0
 * Description:
 */
public interface SysRoleService extends IService<SysRole> {
    /**
     * 为用户分配角色
     * @param assginRoleVo assginRoleVo
     */
    void doAssign(AssginRoleVo assginRoleVo);

    /**
     * 查询用户下所有角色
     * @return
     */
    Map<String, Object> findRoleDateByUserId(Long userid);
}
